// src/database/mysql/entities/user.entity.ts
import { Entity, PrimaryGeneratedColumn, PrimaryColumn, Column } from 'typeorm';
import { v4 as uuidv4 } from 'uuid';
@Entity()
export class Cat {
  @PrimaryColumn('varchar', { length: 32 }) // 适配 UUID
  id: string = uuidv4().replace(/-/g, ''); // 初始化为 UUID

  @Column()
  catName: string;
}
